import request from '@/utils/request'

// 查询借款申请列表
export function listLoanOrder(query) {
  return request({
    url: '/business/LoanOrder/list',
    method: 'get',
    params: query
  })
}

// 查询借款申请详细
export function getLoanOrder(id) {
  return request({
    url: '/business/LoanOrder/' + id,
    method: 'get'
  })
}

// 新增借款申请
export function addLoanOrder(data) {
  return request({
    url: '/business/LoanOrder',
    method: 'post',
    data: data
  })
}

// 修改借款申请
export function updateLoanOrder(data) {
  return request({
    url: '/business/LoanOrder',
    method: 'put',
    data: data
  })
}

// 删除借款申请
export function delLoanOrder(id) {
  return request({
    url: '/business/LoanOrder/' + id,
    method: 'delete'
  })
}

// 导出借款申请
export function exportLoanOrder(query) {
  return request({
    url: '/business/LoanOrder/export',
    method: 'get',
    params: query
  })
}

// 手动批量提现
export function manual_loan(id) {
  return request({
    url: '/manual/loan/' + id,
    method: 'post'
  })
}
